FluentBooking\App\Services\TimeSlotService D

Total Complexity 184
Dependencies 11
Dependents 1
Total lines 971
Lines of code 695
Logical lines of code 457
Comment lines 41
Methods 33
Properties 3

Methods 33

Method Rating Maintainability Complexity Lines of code
maybeBookingFrequencyLimitRanges()
B
39 18 64
maybeBookingDurationLimitRanges()
B
40 17 59
processBookings()
A
41 14 54
getRangedValidSlots()
A
43 12 46
isSlotAvailable()
A
50 13 27
createDateRangeArrayFromSlotConfig()
A
47 9 35
getWeekDaySlots()
A
49 9 28
isSpotAvailable()
S
49 6 30
convertSpots()
S
50 6 29
handleNextDayOverrideSlot()
S
53 6 22
handleNextDaySlot()
S
53 6 22
convertSlotSetsToFlat()
S
54 6 19
maybeDateOverrides()
S
58 6 15
processRemoteBookings()
S
56 5 19
getFilledWeeks()
S
55 5 18
isLocalBooking()
S
63 5 11
getAvailableSpots()
S
54 4 20
getCurrentDateRange()
S
57 4 17
adjustStartDate()
S
59 4 14
removeOverrideSlots()
S
62 4 11
getEnabledSlots()
S
65 4 9
getDates()
S
58 3 14
getBookedSlots()
S
52 2 24
getBookingDurationTotal()
S
58 2 17
getBookingsTotal()
S
59 2 15
maybeDayLightSavingTime()
S
67 2 7
mergeAndSortSlots()
S
64 2 10
getTimezoneInfo()
S
70 2 6
maybeDayLightSavingSlot()
S
66 2 8
__construct()
S
74 1 5
extractMonthAndYear()
S
72 1 5
bookSlot()
S
66 1 9
sortDaySlots()
S
71 1 6